home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga CD-ROM Collection
/
Amiga CD-ROM Collection - Auge 4000 and Cactus and Demo Util.iso
/
auge4000
/
46
/
lib
/
string
/
strbpl.c
next >
Wrap
C/C++ Source or Header
|
1990-06-20
|
349b
|
31 lines
/*
* STRBPL.C
*
* (c)Copyright 1990, Matthew Dillon, All Rights Reserved
*/
#include <string.h>
int
strbpl(av, max, sary)
char **av;
int max;
const char *sary;
{
int i;
for (i = 0; i < max; ++i) {
if (*sary == 0) {
*av++ = NULL;
return(i);
}
*av++ = sary;
while (*sary)
++sary;
++sary;
}
return(-1);
}